from django.urls import path, include
from rest_framework import routers

from .controllers.organization import OrganizationViewSet
from .controllers.encrypt import EncryptViewSet
from .controllers import deploy
from .controllers.menu import MenuViewSet

router = routers.DefaultRouter(trailing_slash=False)
router.register(r'organizations', OrganizationViewSet)
router.register(r'encrypt', EncryptViewSet)
router.register(r'menus', MenuViewSet)

urlpatterns = [
    path(r'', include(router.urls)),
    path(r'deploy', deploy.deploy),
    path(r'deploy/requests', deploy.get_deploy_request)
]
